package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbFuelRegister;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbFuelRegister is a Querydsl query type for ETbFuelRegister
 */
@Label("加油登记信息表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbFuelRegister extends RelationalPathBase<ETbFuelRegister> {

    private static final long serialVersionUID = -643441424;

    public static final QTbFuelRegister tbFuelRegister = new QTbFuelRegister("tb_fuel_register");

    public class PrimaryKeys {

        public final PrimaryKey<ETbFuelRegister> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseOilCard> tbFuelRegisterBaseOilCard1Fk = createForeignKey(baseOilCardId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseDriver> tbFuelRegisterBaseDriver1Fk = createForeignKey(baseDriverId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCar> _baseCarTbFuelRegister1Fk = createInvForeignKey(id, "tb_fuel_register_id");

    }

    public final StringPath accountNumber = createString("accountNumber");

    public final DateTimePath<org.joda.time.DateTime> backDate = createDateTime("backDate", org.joda.time.DateTime.class);

    public final StringPath baseDriverId = createString("baseDriverId");

    public final StringPath baseOilCardId = createString("baseOilCardId");

    public final StringPath commont = createString("commont");

    public final DateTimePath<org.joda.time.DateTime> dateGet = createDateTime("dateGet", org.joda.time.DateTime.class);

    public final StringPath driver = createString("driver");

    public final StringPath flag = createString("flag");

    public final StringPath fleet = createString("fleet");

    public final StringPath id = createString("id");

    public final StringPath licence = createString("licence");

    public final NumberPath<Float> money = createNumber("money", Float.class);

    public final StringPath oilCardNumber = createString("oilCardNumber");

    public final StringPath status = createString("status");

    public final StringPath user = createString("user");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QTbFuelRegister(String variable) {
        super(ETbFuelRegister.class, forVariable(variable), "null", "tb_fuel_register");
        addMetadata();
    }

    public QTbFuelRegister(String variable, String schema, String table) {
        super(ETbFuelRegister.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbFuelRegister(Path<? extends ETbFuelRegister> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_fuel_register");
        addMetadata();
    }

    public QTbFuelRegister(PathMetadata<?> metadata) {
        super(ETbFuelRegister.class, metadata, "null", "tb_fuel_register");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(accountNumber, ColumnMetadata.named("accountNumber").withIndex(11).ofType(Types.VARCHAR).withSize(45));
        addMetadata(backDate, ColumnMetadata.named("backDate").withIndex(9).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(baseDriverId, ColumnMetadata.named("base_driver_id").withIndex(15).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(baseOilCardId, ColumnMetadata.named("base_oil_card_id").withIndex(14).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(commont, ColumnMetadata.named("commont").withIndex(8).ofType(Types.VARCHAR).withSize(45));
        addMetadata(dateGet, ColumnMetadata.named("dateGet").withIndex(2).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(driver, ColumnMetadata.named("driver").withIndex(5).ofType(Types.VARCHAR).withSize(45));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(12).ofType(Types.VARCHAR).withSize(45));
        addMetadata(fleet, ColumnMetadata.named("fleet").withIndex(4).ofType(Types.VARCHAR).withSize(45));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(licence, ColumnMetadata.named("licence").withIndex(10).ofType(Types.VARCHAR).withSize(45));
        addMetadata(money, ColumnMetadata.named("money").withIndex(6).ofType(Types.REAL).withSize(12));
        addMetadata(oilCardNumber, ColumnMetadata.named("oilCardNumber").withIndex(3).ofType(Types.VARCHAR).withSize(45));
        addMetadata(status, ColumnMetadata.named("status").withIndex(13).ofType(Types.VARCHAR).withSize(45));
        addMetadata(user, ColumnMetadata.named("user").withIndex(7).ofType(Types.VARCHAR).withSize(45));
    }

}

